package reflex;

import java.util.List;

import dao.DepartmentDao;
import entity.Department;

public class Test {
	public static void main(String[] args) {
//		StuInfo s=new StuInfo();
//	    Studentdao sd=new Studentdao();
//	    s.setId(17);
//	    sd.delect(s.getId());
		Department d=new Department();
		DepartmentDao dd=new DepartmentDao();
//		d.setId(2);
//		dd.delect(d.getId());
		
		
//		d.setName("邦德尔城");
//		d.setMaster("PJ");
//		d.setId(1);
//		dd.update(d);
		
		
       List<Department> departments=dd.getAll();
       
       for (Department dep : departments) {
		System.out.println(dep.getId()+"\t"+dep.getName()+"\t"+dep.getMaster());
    	   //System.out.println(dep.tostring());
	}
    
 
        
	}
}
